import { Chicken } from "@element-plus/icons-vue/dist/types";

const menuData = [
  {
    id: 1,
    parentId: 0,
    name: "系统管理",
    type: "CATALOG",
    routeName: "",
    routePath: "/system",
    component: "Layout",
    sort: 1,
    visible: 1,
    icon: "system",
    redirect: "/system/user",
    perm: null,
    children: [
      {
        id: 2,
        parentId: 1,
        name: "用户管理",
        type: "MENU",
        routeName: "User",
        routePath: "user",
        component: "system/user/index",
        sort: 1,
        visible: 1,
        icon: "el-icon-User",
        redirect: null,
        perm: null,
        children: [
          {
            id: 105,
            parentId: 2,
            name: "用户查询",
            type: "BUTTON",
            routeName: null,
            routePath: "",
            component: null,
            sort: 0,
            visible: 1,
            icon: "",
            redirect: null,
            perm: "sys:user:query",
            children: [],
          },
          {
            id: 31,
            parentId: 2,
            name: "用户新增",
            type: "BUTTON",
            routeName: null,
            routePath: "",
            component: null,
            sort: 1,
            visible: 1,
            icon: "",
            redirect: "",
            perm: "sys:user:add",
            children: [],
          },
          {
            id: 32,
            parentId: 2,
            name: "用户编辑",
            type: "BUTTON",
            routeName: null,
            routePath: "",
            component: null,
            sort: 2,
            visible: 1,
            icon: "",
            redirect: "",
            perm: "sys:user:edit",
            children: [],
          },
          {
            id: 33,
            parentId: 2,
            name: "用户删除",
            type: "BUTTON",
            routeName: null,
            routePath: "",
            component: null,
            sort: 3,
            visible: 1,
            icon: "",
            redirect: "",
            perm: "sys:user:delete",
            children: [],
          },
          {
            id: 88,
            parentId: 2,
            name: "重置密码",
            type: "BUTTON",
            routeName: null,
            routePath: "",
            component: null,
            sort: 4,
            visible: 1,
            icon: "",
            redirect: null,
            perm: "sys:user:password:reset",
            children: [],
          },
          {
            id: 106,
            parentId: 2,
            name: "用户导入",
            type: "BUTTON",
            routeName: null,
            routePath: "",
            component: null,
            sort: 5,
            visible: 1,
            icon: "",
            redirect: null,
            perm: "sys:user:import",
            children: [],
          },
          {
            id: 107,
            parentId: 2,
            name: "用户导出",
            type: "BUTTON",
            routeName: null,
            routePath: "",
            component: null,
            sort: 6,
            visible: 1,
            icon: "",
            redirect: null,
            perm: "sys:user:export",
            children: [],
          },
        ],
      },
      {
        id: 3,
        parentId: 1,
        name: "角色管理",
        type: "MENU",
        routeName: "Role",
        routePath: "role",
        component: "system/role/index",
        sort: 2,
        visible: 1,
        icon: "role",
        redirect: null,
        perm: null,
        children: [
          {
            id: 70,
            parentId: 3,
            name: "角色新增",
            type: "BUTTON",
            routeName: null,
            routePath: "",
            component: null,
            sort: 1,
            visible: 1,
            icon: "",
            redirect: null,
            perm: "sys:role:add",
            children: [],
          },
          {
            id: 71,
            parentId: 3,
            name: "角色编辑",
            type: "BUTTON",
            routeName: null,
            routePath: "",
            component: null,
            sort: 2,
            visible: 1,
            icon: "",
            redirect: null,
            perm: "sys:role:edit",
            children: [],
          },
          {
            id: 72,
            parentId: 3,
            name: "角色删除",
            type: "BUTTON",
            routeName: null,
            routePath: "",
            component: null,
            sort: 3,
            visible: 1,
            icon: "",
            redirect: null,
            perm: "sys:role:delete",
            children: [],
          },
        ],
      },
      {
        id: 4,
        parentId: 1,
        name: "菜单管理",
        type: "MENU",
        routeName: "Menu",
        routePath: "menu",
        component: "system/menu/index",
        sort: 3,
        visible: 1,
        icon: "menu",
        redirect: null,
        perm: null,
        children: [
          {
            id: 73,
            parentId: 4,
            name: "菜单新增",
            type: "BUTTON",
            routeName: null,
            routePath: "",
            component: null,
            sort: 1,
            visible: 1,
            icon: "",
            redirect: null,
            perm: "sys:menu:add",
            children: [],
          },
          {
            id: 74,
            parentId: 4,
            name: "菜单编辑",
            type: "BUTTON",
            routeName: null,
            routePath: "",
            component: null,
            sort: 3,
            visible: 1,
            icon: "",
            redirect: null,
            perm: "sys:menu:edit",
            children: [],
          },
          {
            id: 75,
            parentId: 4,
            name: "菜单删除",
            type: "BUTTON",
            routeName: null,
            routePath: "",
            component: null,
            sort: 3,
            visible: 1,
            icon: "",
            redirect: null,
            perm: "sys:menu:delete",
            children: [],
          },
        ],
      },
      // {
      //   id: 5,
      //   parentId: 1,
      //   name: "部门管理",
      //   type: "MENU",
      //   routeName: "Dept",
      //   routePath: "dept",
      //   component: "system/dept/index",
      //   sort: 4,
      //   visible: 1,
      //   icon: "tree",
      //   redirect: null,
      //   perm: null,
      //   children: [
      //     {
      //       id: 76,
      //       parentId: 5,
      //       name: "部门新增",
      //       type: "BUTTON",
      //       routeName: null,
      //       routePath: "",
      //       component: null,
      //       sort: 1,
      //       visible: 1,
      //       icon: "",
      //       redirect: null,
      //       perm: "sys:dept:add",
      //       children: [],
      //     },
      //     {
      //       id: 77,
      //       parentId: 5,
      //       name: "部门编辑",
      //       type: "BUTTON",
      //       routeName: null,
      //       routePath: "",
      //       component: null,
      //       sort: 2,
      //       visible: 1,
      //       icon: "",
      //       redirect: null,
      //       perm: "sys:dept:edit",
      //       children: [],
      //     },
      //     {
      //       id: 78,
      //       parentId: 5,
      //       name: "部门删除",
      //       type: "BUTTON",
      //       routeName: null,
      //       routePath: "",
      //       component: null,
      //       sort: 3,
      //       visible: 1,
      //       icon: "",
      //       redirect: null,
      //       perm: "sys:dept:delete",
      //       children: [],
      //     },
      //  ],
      //},
    ],
  },
  {
    id: 200,
    parentId: 0,
    name: "会员管理",
    type: "CATALOG",
    routeName: "",
    routePath: "/member",
    component: "Layout",
    sort: 1,
    visible: 1,
    icon: "user",
    redirect: "/member/member",
    perm: null,
    children: [
      {
        id: 201,
        parentId: 200,
        name: "会员列表",
        type: "MENU",
        routeName: "Member",
        routePath: "member",
        component: "member/member/index",
        sort: 1,
        visible: 1,
        icon: "el-icon-User",
        redirect: null,
        perm: null,
        children: [
          {
            id: 202,
            parentId: 201,
            name: "会员查询",
            type: "BUTTON",
            routeName: null,
            routePath: "",
            component: null,
            sort: 0,
            visible: 1,
            icon: "",
            redirect: null,
            perm: "member:member:query",
            children: [],
          },
        ],
      },
      {
        id: 210,
        parentId: 200,
        name: "级别管理",
        type: "MENU",
        routeName: "Grade",
        routePath: "grade",
        component: "member/grade/index",
        sort: 2,
        visible: 1,
        icon: "role",
        redirect: null,
        perm: null,
        children: [
          {
            id: 211,
            parentId: 210,
            name: "级别新增",
            type: "BUTTON",
            routeName: null,
            routePath: "",
            component: null,
            sort: 1,
            visible: 1,
            icon: "",
            redirect: null,
            perm: "member:grade:add",
            children: [],
          },
          {
            id: 212,
            parentId: 210,
            name: "级别编辑",
            type: "BUTTON",
            routeName: null,
            routePath: "",
            component: null,
            sort: 2,
            visible: 1,
            icon: "",
            redirect: null,
            perm: "member:grade:edit",
            children: [],
          },
          {
            id: 213,
            parentId: 210,
            name: "级别删除",
            type: "BUTTON",
            routeName: null,
            routePath: "",
            component: null,
            sort: 3,
            visible: 1,
            icon: "",
            redirect: null,
            perm: "member:grade:delete",
            children: [],
          },
        ],
      },
    ],
  },
];

export default menuData;
